package com.google.code.shardbatis;
import java.io.FileInputStream;
import java.io.InputStream;

import org.junit.Test;

import com.google.code.shardbatis.builder.ShardConfigHolder;
import com.google.code.shardbatis.builder.ShardConfigParser;

public class M {
	@Test
	public void testApp() throws Exception{
		ShardConfigParser shardConfigParser=new ShardConfigParser();
		InputStream input=new FileInputStream("D:\\yd\\project\\yd\\src\\main\\resources\\orm\\shardbatis-config.xml");
		shardConfigParser.parse(input);
		ShardConfigHolder configHolder = ShardConfigHolder.getInstance();
		System.out.println(configHolder.getStrategy("t_ucp_contactcontrol_attr"));
	}
}
